.euiPopoverTitle {
  @include euiPopoverTitle;

  // If the popover's containing panel has padding applied,
  // ensure the title expands to cover that padding and
  // take on the same amount of padding horizontally

  @each $modifier, $amount in $euiPanelPaddingModifiers {
    .euiPopover__panel.euiPanel--#{$modifier} & {
      padding: $euiSizeM $amount;
      margin: ($amount * -1) ($amount * -1) $amount;
    }
  }

}
